package project.menu.ordermenu.listmadedorders;

import controllers.IAutoservice;
import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;

public class ListMadedOrders implements IMenuItem {

	private String name = "Get List Maded Orders by period";
	private final Integer id = 4;
	private static IMenu submenu;
	private Navigator n;
	
	public ListMadedOrders(){
		n=Navigator.getInstance();
	}
	
	
	public Integer getId() {
		return id;
	}
	
	
	public String getNameItem() {
		return name;
	}

	
	public static void setMenu(IMenu menu) {
		submenu = menu;
	}

	public void action(IAutoservice aut) {
		n.drawMenu(submenu);

	}

}
